package com.example.zqh.service;

import com.example.zqh.model.RespBean;
import com.example.zqh.pojo.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.security.Principal;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zqh
 * @since 2022-09-12
 */
public interface CommentService extends IService<Comment> {


    /**
      * @Author: zqh
      * @Date:
      * @Description: 添加一条新评论
    */
    RespBean addANewComment(Integer shop_id, String comment, Principal principal);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 查询评论
    */
    RespBean queryComments(Integer shop_id);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 删除评论
    */
    RespBean deleteComment(Integer id);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 评论点赞
    */
    RespBean commentLike(Integer id);
    
    
    /**
      * @Author: zqh
      * @Date: 
      * @Description: 获取某个店铺评论的数量
    */
    RespBean getCommentNumber(Integer shop_id);


    /**
      * @Author: zqh
      * @Date:
      * @Description: 获取所有评论的数量
    */
    RespBean getAllNumberComment();
}
